package uk.ac.bath.legacy;
//import  uk.ac.bath.engine.*;
//import  uk.ac.bath.util.*;

import java.util.Comparator;
import uk.ac.bath.environment.cell.CellIF;



public class CellFitnessComparator implements Comparator<CellIF> {
    public int compare(CellIF a1,CellIF b1) {
        Cell a = (Cell)a1;
        Cell b = (Cell)b1;

	if ( a.fitness > b.fitness ) return 1;
	if ( a.fitness < b.fitness ) return -1;
	return 0;
    }
}
